package com.intelap.rp3.coherence.pruebaConcepto;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Map;

public interface Almacen extends Remote {

	<K extends Serializable, V extends Serializable> V load(K oKey)
			throws RemoteException;

	<K extends Serializable, V extends Serializable> Map<K, V> loadAll(
			Collection<K> colKeys) throws RemoteException;

	<K extends Serializable> void erase(K oKey) throws RemoteException;

	<K extends Serializable> void eraseAll(Collection<K> colKeys)
			throws RemoteException;

	<K extends Serializable, V extends Serializable> void store(K oKey, V oValue)
			throws RemoteException;

	<K extends Serializable, V extends Serializable> void storeAll(
			Map<K, V> mapEntries) throws RemoteException;

}
